package com.msb.userclient.client;

import com.alibaba.fastjson2.JSONObject;
import org.springframework.stereotype.Component;

/**
 * UserClient远程调用接口的降级类
 * 当调用远程方法出错的时候，会默认走与远程方法同名的方法
 * @author DreamAndLove
 * @date 2024/09/06 13:35
 * @description
 */
@Component("userClientFallBack")
public class UserClientFallback implements UserClient{
    @Override
    public JSONObject getUserInfo(String name) {
        return null;
    }

    @Override
    public JSONObject getUser() {
        return null;
    }

    @Override
    public String timeoutTest() {
        return "timeOutTest fall back";
    }
}
